-- 轰烬朽徽 --印牌
local hongjinxiuwei_viewas = fk.CreateSkill {
    name = "mcdh_hongjinxiuwei_viewas"
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

hongjinxiuwei_viewas:addEffect('viewas',{
    card_filter = function(self, player,to_select, selected)
        local card = Fk:cloneCard("fire__slash")
        card:addSubcard(to_select)
        return #selected == 0
    end,
    view_as = function(self,player, cards)
        if #cards ~= 1 then return end
        local card = Fk:cloneCard("fire__slash")
        card:addSubcard(cards[1])
        card.skillName = "mcdh_hongjinxiuwei"
        if not player:prohibitUse(card) then
            return card
        end
    end,
})

return hongjinxiuwei_viewas